find relation between am gm hm